package org.springblade.modules.platform.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;

import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author SYG
 * @since 2023-08-01
 */
@TableName("sys_parameter")
public class SysParameter extends Model<SysParameter> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 设备ID
     */
    private String deviceChannelId;

    /**
     * 设备名称
     */
    private String deviceName;

    /**
     * 物理量字段
     */
    private String parameterKey;

    /**
     * 小值
     */
    private Double minValue;

    /**
     * 大值
     */
    private Double maxValue;

    /**
     * 倾角X系数K
     */
    @TableField("dip_x_K")
    private Double dipXK;

    /**
     * 倾角X系数B
     */
    @TableField("dip_x_B")
    private Double dipXB;

    /**
     * 添加时间
     */
    private LocalDateTime insertTime;

    /**
     * 修改时间
     */
    private LocalDateTime updateTime;

    /**
     * 是否已删除
     */
    private Integer isDeleted;
    @ApiModelProperty(name = "传感器编号")
    private String sensorNumber;

    /**
     * 测台id
     */
    private Long measuringPlatformId;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getDeviceChannelId() {
        return deviceChannelId;
    }

    public void setDeviceChannelId(String deviceChannelId) {
        this.deviceChannelId = deviceChannelId;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public String getParameterKey() {
        return parameterKey;
    }

    public void setParameterKey(String parameterKey) {
        this.parameterKey = parameterKey;
    }

    public Double getMinValue() {
        return minValue;
    }

    public void setMinValue(Double minValue) {
        this.minValue = minValue;
    }

    public Double getMaxValue() {
        return maxValue;
    }

    public void setMaxValue(Double maxValue) {
        this.maxValue = maxValue;
    }

    public Double getDipXK() {
        return dipXK;
    }

    public void setDipXK(Double dipXK) {
        this.dipXK = dipXK;
    }

    public Double getDipXB() {
        return dipXB;
    }

    public void setDipXB(Double dipXB) {
        this.dipXB = dipXB;
    }

    public LocalDateTime getInsertTime() {
        return insertTime;
    }

    public void setInsertTime(LocalDateTime insertTime) {
        this.insertTime = insertTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    public Long getMeasuringPlatformId() {
        return measuringPlatformId;
    }

    public void setMeasuringPlatformId(Long measuringPlatformId) {
        this.measuringPlatformId = measuringPlatformId;
    }

    public String getSensorNumber() {
        return sensorNumber;
    }

    public void setSensorNumber(String sensorNumber) {
        this.sensorNumber = sensorNumber;
    }

    @Override
    public String toString() {
        return "SysParameter{" +
        "id=" + id +
        ", deviceChannelId=" + deviceChannelId +
        ", sensorNumber=" + sensorNumber +
         ", measuringPlatformId=" + measuringPlatformId +
        ", deviceName=" + deviceName +
        ", parameterKey=" + parameterKey +
        ", minValue=" + minValue +
        ", maxValue=" + maxValue +
        ", dipXK=" + dipXK +
        ", dipXB=" + dipXB +
        ", insertTime=" + insertTime +
        ", updateTime=" + updateTime +
        ", isDeleted=" + isDeleted +
        "}";
    }
}
